﻿using System.Windows;
using System.Windows.Controls;
using Kiva7.Translations;

namespace Kiva7.Controls
{
    public partial class TranslationControl : UserControl
    {
        public TranslationControl()
        {
            InitializeComponent();
        }

        public Style TextStyle
        {
            get { return Text.Style; }
            set { Text.Style = value; }
        }

        public void TranslateTextWithDetect()
        {
            Translation translation = DataContext as Translation;
            if (translation != null)
            {
                translation.TranslateTextWithDetect();
            }

        }

        public void TranslateText()
        {
            Translation translation = DataContext as Translation;
            if (translation != null)
            {
                translation.TranslateText();
            }

        }

    }
}
